Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CRAC-Strat_2019 SerialHalfDuplex SDFileSystem DISCO-F469NI_portrait liaison_Bluetooth ident_crac
Dependents: Codeprincipal_2019 CRAC-Strat_2019
Diff: Robots/Strategie_small.cpp
- Revision:
- 36:6dd30780bd8e
- Parent:
- 34:6aa4b46b102e
- Child:
- 38:76f886a1c8e6
--- a/Robots/Strategie_small.cpp Tue May 01 13:25:42 2018 +0000 +++ b/Robots/Strategie_small.cpp Wed May 02 20:40:57 2018 +0000 @@ -14,23 +14,6 @@ } -//L'angle est entre 0 et 1023 -void XL320_setGoal(unsigned char id, unsigned short angle); - -void XL320_setGoal(unsigned char id, unsigned short angle) -{ - CANMessage msgTx=CANMessage(); - msgTx.id=SERVO_XL320; - msgTx.len=3; - msgTx.format=CANStandard; - msgTx.type=CANData; - msgTx.data[0]=(unsigned char)id; - // from sur 2 octets - msgTx.data[1]=(unsigned char)angle; - msgTx.data[2]=(unsigned char)(angle>>8); - - can1.write(msgTx); -} /****************************************************************************************/